package com.suse.jd_system_server.dao;

import com.suse.jd_system_server.entity.Testy;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * 测试结果：数据库连通无误
 */
@Mapper
public interface TestyDao {

    @Insert("insert into testy(name,an_id) values (#{name},#{anId})")
    void inserts(Testy testy);

    @Select("select * from testy")
    ArrayList<Testy> selectAll();
}
